const mongoose = require('mongoose')

const schema = new mongoose.Schema({
  navigation_link: {
    type: String,
    required: true,
  },
  navigation_name:{
    type: String,
    required: true,
  },
  navigation_category:{
    type: mongoose.SchemaTypes.ObjectId,
    ref: 'NaviCategory',
    required: true,
  },
  navigation_icon:{
    type: String,
    default: `/img/web.png`,
  },
  navigation_intro:{
    type: String,
  }
})

module.exports = mongoose.model('Navigation', schema)
